package request

type RegisterReq struct {
	Name string `form:"name" json:"name" xml:"name"  binding:"required"`
}

type AddGoodsReq struct {
	Name  string `form:"name" json:"name" xml:"name"  binding:"required"`
	Price int    `form:"price" json:"price" xml:"price"  binding:"required"`
	State int    `form:"state" json:"state" xml:"state"  binding:"required"`
	Img   string `form:"img" json:"img" xml:"img"  binding:"required"`
}

type AddPay struct {
	UserId  int `form:"userId" json:"userId" xml:"userId"  binding:"required"`
	GoodsId int `form:"goodsId" json:"goodsId" xml:"goodsId"  binding:"required"`
	Way     int `form:"way" json:"way" xml:"way"  binding:"required"`
}
type AddOrder struct {
	UserId  int `form:"userId" json:"userId" xml:"userId"  binding:"required"`
	GoodsId int `form:"goodsId" json:"goodsId" xml:"goodsId"  binding:"required"`
	Way     int `form:"way" json:"way" xml:"way"  binding:"required"`
	Price   int `form:"price" json:"price" xml:"price"  binding:"required"`
	Num     int `form:"num" json:"num" xml:"num"  binding:"required"`
}
